//
//  UIButton+FSLButton.h
//  比柚UI测试项目
//
//  Created by 我演示 on 2019/10/21.
//  Copyright © 2019 Jerry-Fu. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, ABSButtonEdgeInsetsStyle) {
    ABSButtonEdgeInsetsStyleTop, // image在上，label在下
    ABSButtonEdgeInsetsStyleLeft, // image在左，label在右
    ABSButtonEdgeInsetsStyleBottom, // image在下，label在上
    ABSButtonEdgeInsetsStyleRight // image在右，label在左
};


NS_ASSUME_NONNULL_BEGIN

@interface UIButton (FSLButton)



/**基础信息设置内容*/
-(instancetype)initWithButtonText:(NSString *)textString textColor:(UIColor *)textColor textFont:(CGFloat)textFont;

/**带有圆角表框的设置内容*/
-(instancetype)initWithButtonText:(NSString *)textString textColor:(UIColor *)textColor textFont:(CGFloat)textFont circular:(CGFloat )circularFloat borderWidth:(CGFloat )borderWidth;

+(instancetype)buttonWithType:(UIButtonType)buttonType andTextString:(NSString *)textString ;


/**
 *  设置button的titleLabel和imageView的布局样式，及间距
 *  @param style titleLabel和imageView的布局样式
 *  @param space titleLabel和imageView的间距
 */
- (void)setLayoutWithEdgeInsetsStyle:(ABSButtonEdgeInsetsStyle)style
imageTitleSpace:(CGFloat)space;


@end

NS_ASSUME_NONNULL_END
